package com.cjm.one.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cjm.one.common.result.Result;
import com.cjm.one.goods.client.GoodsCategoryClient;
import com.cjm.one.model.goods.entity.GoodsCategory;
import com.cjm.one.model.goods.vo.GoodsCategoryVo;
import com.cjm.one.service.GoodsCategoryService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodsCategoryServiceImpl implements GoodsCategoryService {
    @Resource
    private GoodsCategoryClient goodsCategoryClient;

    @Override
    public Result<List<GoodsCategory>> listLimit10(Integer size) {
        return goodsCategoryClient.listLimit10(size);
    }

    @Override
    public Result<List<GoodsCategory>> selectToParentId(Long parentId) {
        return  goodsCategoryClient.selectToParentId(parentId);
    }
}
